﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VISS.API.Commons {
    public interface IPet {

        /// <summary>
        /// Insert new PetEnt
        /// </summary>
        /// <param name="item">PetEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Insert(PetEnt item);
        /// <summary>
        /// Update PetEnt
        /// </summary>
        /// <param name="item">PetEnt</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Update(PetEnt item);
        /// <summary>
        /// Delete a PetEnt
        /// </summary>
        /// <param name="iD">ID of PetEnt need to be deleted</param>
        /// <returns>return true if success, otherwise return false</returns>
        bool Delete(short iD);

        /// <summary>
        /// Get all PetEnt
        /// </summary>
        /// <returns>return a list of PetEnt (empty list if no PetEnt exists)</returns>
        List<PetEnt> GetAll();
        /// <summary>
        /// Get single PetEnt
        /// </summary>
        /// <param name="iD">ID of PetEnt want get</param>
        /// <returns>return PetEnt (null if does not exists or error)</returns>
        PetEnt GetByID(short iD);
    }
}
